home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / chrome / browser.jar / content / browser / preferences / sanitize.xul < prev    next >
Extensible Markup Language  |  2007-07-18  |  6KB  |  125 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://global/skin/"?>
  5.  
  6. <!DOCTYPE dialog [
  7.   <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  8.   <!ENTITY % sanitizeDTD SYSTEM "chrome://browser/locale/preferences/sanitize.dtd">
  9.   <!ENTITY % prefsDTD SYSTEM "chrome://flock/locale/preferences/flockprefs.dtd">
  10.   %brandDTD;
  11.   %sanitizeDTD;
  12.   %prefsDTD;
  13. ]>
  14.  
  15. <prefwindow id="SanitizeDialog" type="child"
  16.             xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  17.             dlgbuttons="accept,cancel"
  18.             title="&sanitizeDialog.title;"
  19.             ondialogaccept="gSanitizePromptDialog.finish();"><!--
  20.             style="width: &window.width; !important;"-->
  21.  
  22.   <prefpane id="SanitizeDialogPane" onpaneload="gSanitizePromptDialog.init();">
  23.  
  24.     <script type="application/x-javascript">
  25.     <![CDATA[
  26.       var gSanitizePromptDialog = {
  27.         init: function ()
  28.         {
  29.           var prefcfgacct = document.getElementById("privacy.item.configuredAccounts");
  30.           var picfgacct = document.getElementById("privacy.item.configuredAccounts.checkbox");
  31.           var pipasswd = document.getElementById("privacy.item.passwords.checkbox");
  32.           if ( pipasswd.checked && !picfgacct.disabled ) {
  33.             picfgacct.disabled = true;
  34.             picfgacct.checked = true;
  35.           }
  36.         },
  37.  
  38.         finish: function ()
  39.         {
  40.           var prefcfgacct = document.getElementById("privacy.item.configuredAccounts");
  41.           var picfgacct = document.getElementById("privacy.item.configuredAccounts.checkbox");
  42.           // Ensure we pick up our programatically changed value.
  43.           if ( picfgacct.checked ) {
  44.             prefcfgacct.value = true;
  45.           } else {
  46.             prefcfgacct.value = false;
  47.           }
  48.         },
  49.  
  50.         onClickPassword: function ()
  51.         {
  52.           var prefcfgacct = document.getElementById("privacy.item.configuredAccounts");
  53.           var picfgacct = document.getElementById("privacy.item.configuredAccounts.checkbox");
  54.           var pipasswd = document.getElementById("privacy.item.passwords.checkbox");
  55.           // HACK ALERT:
  56.           //    if "Passwords" is CHECKED, we want to DISABLE the configuredAccounts checkbox.
  57.           //    The following if statement looks reversed, but it is not: the onclick handler
  58.           //    is called BEFORE the state of the checkbox changes, so the if statement is
  59.           //    actually testing the PRIOR state.
  60.           if ( !pipasswd.checked ) {
  61.             picfgacct.disabled = true;
  62.             picfgacct.checked = true;
  63.           } else {
  64.             picfgacct.disabled = false;
  65.             picfgacct.checked = prefcfgacct.value;
  66.           }
  67.           return undefined;
  68.         }
  69.       };
  70.     ]]>
  71.     </script>
  72.  
  73.     <preferences>
  74.       <preference id="privacy.item.history"               name="privacy.item.history"               type="bool"/>
  75.       <preference id="privacy.item.formdata"              name="privacy.item.formdata"              type="bool"/>
  76.       <preference id="privacy.item.passwords"             name="privacy.item.passwords"             type="bool"/>
  77.       <preference id="privacy.item.downloads"             name="privacy.item.downloads"             type="bool"/>
  78.       <preference id="privacy.item.cookies"               name="privacy.item.cookies"               type="bool"/>
  79.       <preference id="privacy.item.cache"                 name="privacy.item.cache"                 type="bool"/>
  80.       <preference id="privacy.item.sessions"              name="privacy.item.sessions"              type="bool"/>
  81.       <!-- pref handles deletion of accounts data in RDF -->
  82.       <preference id="privacy.item.configuredAccounts"    name="privacy.item.configuredAccounts"    type="bool"/>
  83.     </preferences>
  84.  
  85.     <description>&clearDataSettings.label;</description>
  86.  
  87.     <checkbox label="&itemHistory.label;"
  88.               accesskey="&itemHistory.accesskey;"
  89.               tooltiptext="flock.pref.sanitize.history.tip;"
  90.               preference="privacy.item.history"/>
  91.     <checkbox label="&itemDownloads.label;"
  92.               accesskey="&itemDownloads.accesskey;"
  93.               tooltiptext="&flock.pref.sanitize.downloads.tip;"
  94.               preference="privacy.item.downloads"/>
  95.     <checkbox label="&itemFormData.label;"
  96.               accesskey="&itemFormData.accesskey;"
  97.               tooltiptext="&flock.pref.sanitize.formData.tip;"
  98.               preference="privacy.item.formdata"/>
  99.     <checkbox label="&itemCache.label;"
  100.               accesskey="&itemCache.accesskey;"
  101.               tooltiptext="&flock.pref.sanitize.cache.tip;"
  102.               preference="privacy.item.cache"/>
  103.     <checkbox label="&itemCookies.label;"
  104.               accesskey="&itemCookies.accesskey;"
  105.               tooltiptext="&flock.pref.sanitize.cookies.tip;"
  106.               preference="privacy.item.cookies"/>
  107.     <checkbox label="&itemSessions.label;"
  108.               accesskey="&itemSessions.accesskey;"
  109.               tooltiptext="&flock.pref.sanitize.sessions.tip;"
  110.               preference="privacy.item.sessions"/>
  111.     <checkbox label="&itemPasswords.label;"
  112.               id="privacy.item.passwords.checkbox"
  113.               accesskey="&itemPasswords.accesskey;"
  114.               tooltiptext="&flock.pref.sanitize.passwords.tip;"
  115.               preference="privacy.item.passwords"
  116.               onclick="return gSanitizePromptDialog.onClickPassword();"/>
  117.     <!-- handles deletion of accounts data in RDF -->
  118.     <checkbox label="&flock.pref.sanitize.accounts;"
  119.               id="privacy.item.configuredAccounts.checkbox"
  120.               tooltiptext="&flock.pref.sanitize.accounts.tip;"
  121.               preference="privacy.item.configuredAccounts"/>
  122.  
  123.   </prefpane>
  124. </prefwindow>
  125.